<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>比牛马更可悲的是中年牛马：卷不动、躺不平、逃不掉</title>
    <script src="../js/html2canvas.min.js"></script>
    <link rel="stylesheet" href="../css/all.min.css">
    <style>
        .highlight { color: #ff4d6d; font-weight: bold; }
        .quote { border-left: 4px solid #ff4d6d; padding-left: 15px; margin: 20px 0; color: #555; }
        .emoji-title { font-size: 20px; margin-right: 8px; }
        .read-more { background: #fef2f2; padding: 12px 15px; border-radius: 8px; margin: 25px 0; }
        .topic-tag { display: inline-block; background: #fff0f3; color: #d0021b; padding: 3px 10px; border-radius: 20px; font-size: 14px; margin-right: 8px; }
    </style>
</head>
<body style="font-family: 'PingFang SC', 'Helvetica Neue', Arial, 'Microsoft YaHei', sans-serif; line-height: 1.8; color: #333; background: #f7f7f7; padding: 0; max-width: 600px; margin: 0 auto; font-size: 16px;">
    <div style="background: #ff4d6d; color: white; padding: 12px 15px; font-size: 14px; text-align: center;">
        <span>点击右上角<span style="display: inline-block; transform: rotate(90deg); margin: 0 5px;">↑</span>关注，不错过深度好文</span>
    </div>

    <div style="position: fixed; right: 15px; top: 50%; transform: translateY(-50%); z-index: 1000;">
        <button id="increaseFont" title="放大文字" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">A+</button>
        <button id="decreaseFont" title="缩小文字" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">A-</button>
        <button id="exportImage" title="导出长图" style="width: 48px; height: 48px; border-radius: 50%; background: #ff4d6d; color: white; border: none; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 10px rgba(255,77,109,0.4); cursor: pointer; font-size: 18px;">📷</button>
    </div>
    
    <div id="articleContent" style="background: white; padding: 25px 15px 40px; margin: 0; box-shadow: none;">
        <div style="padding: 0 15px; margin-bottom: 20px;">
            <h1 style="font-size: 26px; font-weight: bold; color: #1a1a1a; line-height: 1.4; margin-bottom: 15px; padding-bottom: 10px; border-bottom: none;">
                比牛马更可悲的是中年牛马：卷不动、躺不平、逃不掉
            </h1>
            <h3 style="color: #666; font-size: 16px; margin-bottom: 15px; font-weight: normal; line-height: 1.6; background: #f9f9f9; padding: 12px 15px; border-radius: 8px;">
                <span class="emoji-title">⚠️</span>
                凌晨1点，42岁的老周在公司楼下抽完第5根烟。领导刚发的消息还在闪："小王都在通宵改方案，你这个年纪该更拼才对。"可他摸了摸发僵的腰椎，想起家里8000的房贷和孩子未交的学费，狠狠掐灭了烟——<span class="highlight">中年人连崩溃的资格都没有</span>。
            </h3>
        </div>
        
        <div style="width: 100%; margin: 0 0 25px; border-radius: 8px; overflow: hidden;">
            <img src="../img/bg_wx.jpeg" style="width: 100%; height: auto; display: block;" alt="中年职场人疲惫的背影">
        </div>
        
        <div style="background: linear-gradient(135deg, #fff0f3 0%, #ffe5ea 100%); border-radius: 10px; padding: 15px 18px; margin: 0 15px 25px; display: flex; align-items: center; font-size: 15px; box-shadow: 0 3px 12px rgba(255,77,109,0.1);">
            <span style="display: inline-block; margin-right: 12px; font-size: 20px; color: #ff4d6d;">🔄</span>
            <div>
                <p style="margin: 0; line-height: 1.6; color: #d0021b; font-weight: 500;">
                    如果你身边有35+的朋友，<span class="highlight">一定要转发给他</span>——<br>
                    懂他的无奈，比说"加油"更有力量
                </p>
            </div>
        </div>
        
        <div style="padding: 0 15px;">
            <p style="margin-bottom: 22px; text-align: justify; font-size: 17px; color: #1a1a1a;">
                上周部门聚餐，老周喝到满脸通红，突然蹲在地上哭了：
            </p>
            
            <div class="quote" style="font-size: 17px;">
                "我跟领导说腰椎间盘突出不能熬夜，他说'谁没点毛病？小王痛风还在加班呢'；我跟老婆说想辞职，她翻出账单：房贷8000，孩子兴趣班3000，你爸妈降压药这个月该买了..."
            </div>
            
            <p style="margin-bottom: 22px; text-align: justify; font-size: 17px;">
                全场没人说话。<span class="highlight">每个中年人心里都住着一个"老周"</span>：
                <br><br>
                想跟年轻人拼加班？身体先扛不住了；<br>
                想躺平混日子？全家开销像座山压着；<br>
                想辞职跑路？回头一看，身后空无一人，连逃的资格都没有。
            </p>
            
            <div style="background: #fff5f5; border-left: 5px solid #ff4d6d; padding: 18px; margin: 25px 0; border-radius: 0 8px 8px 0;">
                <p style="font-size: 18px; color: #d0021b; font-weight: bold; margin-bottom: 0; line-height: 1.5;">
                    这届中年人，早就不是"上有老下有小"那么简单了。<br>
                    他们被困在"卷不动、躺不平、逃不掉"的三角里，动弹不得。
                </p>
            </div>
            
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 20px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span class="emoji-title">💔</span>
                    第一痛：不是不想卷，是真的卷不动了
                </h2>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    王哥在互联网公司做了10年运营，38岁这年，被领导拉进"95后冲锋组"。
                </p>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    "年轻人通宵改方案，早上洗把脸继续开会；我加班到11点就心慌——<span class="highlight">70岁的妈等着我送降压药，孩子作业本还没签字</span>。"
                </p>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    最后升职的是刚毕业的小姑娘。王哥说："不是我不拼，是中年人身上的'牵绊'太多，根本没法像年轻人一样'孤注一掷'。"
                </p>
                
                <div style="background: #f0f7ff; border-radius: 8px; padding: 18px; margin: 20px 0; position: relative;">
                    <div style="position: absolute; top: -10px; left: 20px; background: #4080ff; color: white; font-size: 12px; padding: 2px 10px; border-radius: 20px;">真实故事</div>
                    <p style="margin-bottom: 0; text-align: justify; font-size: 16px;">
                        我表哥是工程监理，45岁那年跟年轻同事比爬脚手架。年轻人半小时上下两趟，他爬到一半就喘得直不起腰，下来后膝盖肿了一周。<br>
                        领导没骂他，但从此重要项目再也没找过他。
                    </p>
                </div>
                
                <p style="margin-bottom: 0; text-align: justify; font-size: 16px; background: #fef2f2; padding: 15px; border-radius: 8px;">
                    <strong>👉 破局点：别跟年轻人拼体力，拼"不可替代性"</strong><br>
                    把10年经验梳理成《项目避坑手册》，帮团队少走弯路；带新人时输出"标准化流程"，让领导看到你的价值不在"加班时长"，而在"解决问题的效率"。
                </p>
            </div>
            
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 20px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span class="emoji-title">🛌</span>
                    第二痛：年轻人躺平是选择，中年人躺平是灾难
                </h2>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    同事张姐总说"大不了躺平"，可上个月她妈突然住院，押金要5万。
                </p>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    她咬着牙接了公司的紧急项目，每天加班到凌晨。有人劝她休息，她说：<span class="highlight">"我躺平一天，我妈住院费就少一天，你说我敢吗？"</span>
                </p>
                
                <div style="background: #f0f7ff; border-radius: 8px; padding: 18px; margin: 20px 0; position: relative;">
                    <div style="position: absolute; top: -10px; left: 20px; background: #4080ff; color: white; font-size: 12px; padding: 2px 10px; border-radius: 20px;">读者留言</div>
                    <p style="margin-bottom: 0; text-align: justify; font-size: 16px;">
                        "我36岁，每月房贷6000，孩子学费2000，父母医保报销后还要自付1500。就算公司让我去扫厕所，我都得笑着说'谢谢领导给机会'——<strong>不是我没骨气，是我身后空无一人</strong>。"
                    </p>
                </div>
                
                <p style="margin-bottom: 0; text-align: justify; font-size: 16px; background: #fef2f2; padding: 15px; border-radius: 8px;">
                    <strong>👉 破局点：给生活留"缓冲带"</strong><br>
                    每月强制存5%收入作为"应急金"，哪怕只有几千块，也能在你不想上班时，有底气说"我能歇一周再找工作"。记住：中年人最大的安全感，是手里有"不工作也能活的钱"。
                </p>
            </div>
            
            <div style="margin: 35px 0; position: relative; padding: 20px 15px 15px; background: #f9f9f9; border-radius: 10px;">
                <div style="content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 5px; background: linear-gradient(90deg, #ff4d6d, #ff9a76); border-radius: 5px 5px 0 0;"></div>
                <h2 style="font-size: 20px; color: #1a1a1a; margin-bottom: 15px; font-weight: bold; display: flex; align-items: center;">
                    <span class="emoji-title">🏃</span>
                    第三痛：不是不想逃，是根本逃不掉
                </h2>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    老郑48岁那年，跟我爸说想辞职去西藏。他存了点钱，觉得"该为自己活一次"。
                </p>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    结果出发前一周，他爸中风住院，每天要有人喂饭擦身；儿子刚结婚，房贷每月9000，儿媳催着他帮忙还。
                </p>
                
                <p style="margin-bottom: 18px; text-align: justify; font-size: 16px;">
                    老郑默默退了机票，现在还在工厂倒班，<span class="highlight">连请假都要算着扣多少钱</span>。
                </p>
                
                <p style="margin-bottom: 0; text-align: justify; font-size: 16px; background: #fef2f2; padding: 15px; border-radius: 8px;">
                    <strong>👉 破局点：提前"断奶"</strong><br>
                    教父母用线上问诊、手机缴费，别事事亲力亲为；让孩子从小参与家务、管理零花钱，培养独立能力；跟伴侣明确"家庭责任分工表"，别把压力全扛在自己肩上。
                </p>
            </div>
            
            <div style="font-size: 19px; color: #ff4d6d; text-align: center; margin: 40px 0; padding: 20px 15px; position: relative; line-height: 1.6; background: #fff0f3; border-radius: 10px;">
                <span style="font-size: 40px; opacity: 0.2; position: absolute; top: 5px; left: 10px;">"</span>
                中年不是"牛马"，是家里的"承重墙"。<br>
                那些你咬牙扛住的难，<br>
                终会变成家人安稳的甜。
                <span style="font-size: 40px; opacity: 0.2; position: absolute; bottom: -20px; right: 10px;">"</span>
            </div>
            
            <div style="background: #fff8e6; padding: 20px; border-radius: 10px; margin: 30px 0;">
                <p style="margin-bottom: 15px; color: #e67700; font-weight: 500; font-size: 17px;">👇 聊聊你的故事</p>
                <p style="margin-bottom: 15px; font-size: 16px; color: #555;">你有没有过"卷不动又不敢躺"的时刻？最后是怎么熬过来的？评论区分享你的经历，给同龄人一点力量</p>
            </div>
            
            <div class="read-more">
                <p style="margin: 0; font-size: 16px; color: #d0021b; text-align: center;">
                    <span style="margin-right: 8px;">💬</span>
                    如果你身边有35岁以上的朋友，转发这篇文章给他——<br>
                    告诉他：你不是一个人在扛。
                </p>
            </div>
            
            <div style="margin: 30px 0 15px; padding-top: 20px; border-top: 1px solid #eee;">
                <p style="font-size: 14px; color: #888; margin-bottom: 10px;">#中年职场 #上有老下有小 #生存压力 #职场感悟 #成年人的世界</p>
            </div>
            
            <div style="margin-top: 30px; padding-top: 20px; border-top: 2px dashed #eee;">
                <p style="font-weight: bold; margin-bottom: 15px; color: #1a1a1a;">你可能还想看</p>
                <div style="display: flex; gap: 10px; margin-bottom: 15px;">
                    <div>
                        <p style="margin: 0 0 5px; font-size: 15px; line-height: 1.4; color: #1a1a1a;">35岁被裁员后，我送了3个月外卖：成年人的体面，都是钱给的</p>
                        <p style="margin: 0; font-size: 13px; color: #888;"></p>
                    </div>
                </div>
                <div style="display: flex; gap: 10px;">
                    <div>
                        <p style="margin: 0 0 5px; font-size: 15px; line-height: 1.4; color: #1a1a1a;">孩子说"爸爸你别老加班"，我在公司厕所哭了半小时</p>
                        <p style="margin: 0; font-size: 13px; color: #888;"></p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <div id="imagePreview" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); display: none; align-items: center; justify-content: center; z-index: 2000;">
        <div style="background: white; padding: 20px; border-radius: 10px; max-width: 90%; position: relative;">
            <button id="closePreview" style="position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 24px; cursor: pointer; color: #666;">×</button>
            <img id="previewImage" src="" alt="文章长图预览" style="max-width: 100%; max-height: 80vh;">
            <button id="downloadImage" style="background: #ff4d6d; color: white; border: none; padding: 12px 20px; border-radius: 6px; margin: 15px auto 0; display: block; cursor: pointer; font-size: 16px;">下载文章图片</button>
        </div>
    </div>

     <script>
        const elementsToScale = [
            { selector: 'body', baseSize: 16 },
            { selector: 'h1', baseSize: 26 },
            { selector: 'h2', baseSize: 20 },
            { selector: 'h3', baseSize: 16 },
            { selector: '#articleContent p', baseSize: 16 }, 
            { selector: '#articleContent div', baseSize: 15 },
            { selector: '#articleContent input', baseSize: 15 },
            { selector: '#articleContent button', baseSize: 16 }
        ];
        
        let scaleFactor = 1;
        const scaleStep = 0.1;
        const minScale = 0.75;
        const maxScale = 3;
        
        document.getElementById('increaseFont').addEventListener('click', () => {
            if (scaleFactor < maxScale) {
                scaleFactor += scaleStep;
                updateFontSizes();
            }
        });
        
        document.getElementById('decreaseFont').addEventListener('click', () => {
            if (scaleFactor > minScale) {
                scaleFactor -= scaleStep;
                updateFontSizes();
            }
        });
        
        function updateFontSizes() {
            elementsToScale.forEach(item => {
                document.querySelectorAll(item.selector).forEach(el => {
                    el.style.fontSize = `${item.baseSize * scaleFactor}px`;
                });
            });
        }
        
        document.getElementById('exportImage').addEventListener('click', function() {
            const articleContent = document.getElementById('articleContent');
            const originalText = this.innerHTML;
            this.innerHTML = '生成中...';
            this.disabled = true;
            
            html2canvas(articleContent, {
                scale: 2,
                useCORS: true,
                backgroundColor: '#ffffff'
            }).then(canvas => {
                this.innerHTML = originalText;
                this.disabled = false;
                document.getElementById('previewImage').src = canvas.toDataURL('image/png');
                document.getElementById('imagePreview').style.display = 'flex';
            }).catch(error => {
                console.error('生成失败:', error);
                alert('生成失败，请重试');
                this.innerHTML = originalText;
                this.disabled = false;
            });
        });
        
        document.getElementById('closePreview').addEventListener('click', () => {
            document.getElementById('imagePreview').style.display = 'none';
        });
        
        document.getElementById('downloadImage').addEventListener('click', () => {
            const link = document.createElement('a');
            link.download = '中年困境：卷不动、躺不平、逃不掉.png';
            link.href = document.getElementById('previewImage').src;
            link.click();
        });
    </script>
</body>
</html>
